home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
rbbs_pc
/
rbtch180.zip
/
EXAMPLES.ZIP
/
PHASE1.BAT
next >
Wrap
DOS Batch File
|
1992-05-31
|
3KB
|
58 lines
REM %1 = path/filename.extension, %2 = extension
REM %3 = node number, %4 = filename(no period or extension)
REM %5 = the path to your upload directory (no trailing backslash)
REM
REM Note that gate%node% is used here. If you do not use
REM GATEWAY substitue you COM port here instead ( > COM1 )
REM
REM %node% is from the SET NODE=1, SET NODE=2, etc. in your
REM Autoexec.Bat or your batch file that runs your DV
REM Node Window
REM
@echo off
if %2 == ARJ GOTO :ARJ
if %2 == ZIP GOTO :ZIP
if %2 == GIF GOTO :GIF
if %2 == LZH GOTO :LZH
GOTO :END
:ZIP
if not exist %1 GOTO :END
echo. > gate%node%
echo Checking ZIP Intergrity of Upload > gate%node%
echo. > gate%node%
pkunzip -t %1 > NUL
if errorlevel 1 GOTO :DEL
GOTO :END
:LZH
if not exist %1 GOTO :END
echo. > gate%node%
echo Checking LZH Intergrity of Upload > gate%node%
echo. > gate%node%
lharc -t %1 > NUL
if errorlevel 1 GOTO :DEL
GOTO :END
:ARJ
if not exist %1 GOTO :END
echo. > gate%node%
echo Checking ARJ Intergrity of Upload > gate%node%
echo. > gate%node%
arj t %1 > NUL
if errorlevel 1 GOTO :DEL
GOTO :END
:DEL
del %1 > NUL
:GIF
echo. > gate%node%
echo **** > gate%node%
echo The Policies of this BBS state that > gate%node%
echo GIF's are UNWANTED FILES! > gate%node%
echo THE UPLOADED .GIF FILE HAS BEEN DELETED!!!!! > gate%node%
echo **** > gate%node%
echo You agreed to these Policies when > gate%node%
echo you first logged onto this BBS > gate%node%
echo as a New User > gate%node%
echo. > gate%node%
del %1 > NUL
:END
seterror 0